package com.henghai.zhenxuan.ui.page.adapter;

import android.content.Context;

import androidx.recyclerview.widget.RecyclerView;

import com.henghai.zhenxuan.data.bean.ProductInfoBean;
import com.henghai.zhenxuan.databinding.AdapterProductImageItemBinding;
import com.kunminx.binding_recyclerview.adapter.SimpleDataBindingAdapter;

public class ProductImageListAdapter extends SimpleDataBindingAdapter<ProductInfoBean.ProductFileListBean, AdapterProductImageItemBinding> {

    public ProductImageListAdapter(Context context) {
        super(context, com.henghai.zhenxuan.R.layout.adapter_product_image_item, DiffUtils.getInstance().getProductImageItemCallback());
    }

    @Override
    protected void onBindItem(AdapterProductImageItemBinding adapterTaskItemBinding, ProductInfoBean.ProductFileListBean bean, RecyclerView.ViewHolder viewHolder) {
        adapterTaskItemBinding.setProduct(bean);
    }
}
